import request from '@/utils/request'
//话题主表接口
export function bbsCollectQuery(data) {
  //分页列表
  return request({
    method: 'get',
    url: '/bbsCollect/query',
    params: data,
  })
}

export function bbsCollectQueryById(id) {
  //查询
  return request({
    method: 'get',
    url: '/bbsCollect/query/' + id,
  })
}

export function bbsCollectAdd(data) {
  //添加
  return request({
    method: 'post',
    url: '/bbsCollect/add',
    data,
  })
}

export function bbsCollectCancel(data) {
  //取消点赞收藏
  return request({
    method: 'post',
    url: '/bbsCollect/cancel',
    data,
  })
}

export function bbsCollectDelete(id) {
  //删除
  return request({
    method: 'get',
    url: '/bbsCollect/delete/' + id,
  })
}

export function bbsCollectUpdate(data) {
  //修改
  return request({
    method: 'post',
    url: '/bbsCollect/update',
    data,
  })
}
